#pragma once
#include "define.h"
#include "WorldSession.h"

class CWorldSessionMgr
{
public:
	CWorldSessionMgr(void);
	~CWorldSessionMgr(void);
	static CWorldSessionMgr& instance()
	{
		static CWorldSessionMgr cWSM;
		return cWSM;
	}

	void AddSession(CWorldSession* session);
	void Update();
	void UpdateSession();
private:
	std::queue<CWorldSession*> m_QueSession;
	std::map<uint32,CWorldSession*> m_mapSession;

	void _AddSession(CWorldSession* session);
};
#define WorldMgr CWorldSessionMgr::instance()